<?php
/**
 * Created by PhpStorm.
 * User: papa
 * Date: 18/5/10
 * Time: 11:46
 */

namespace app\admin\model;


class BannerItem extends BaseModel
{

    //查询所属Banner
    public function banner()
    {
        return $this->belongsTo('Banner','banner_id','id');
    }
}